//
//  WBDemoViewController.swift
//  itcastWeibo
//
//  Created by 谢臣 on 2019/10/17.
//  Copyright © 2019 itcast. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        title  = "第\(navigationController?.children.count ?? 0)个"
    }
    
    @objc private func showNext(){
        let vc = WBDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
    }


}
extension WBDemoViewController{
    
    override func setupTableView() { 
        super.setupTableView()
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一步", fontSize: 16.0, target: self, action: #selector(showNext))
    }
    
}

